def method(s):
    ans = []
    even = 0
    for c in s:
        t = int(c)
        even = even * 10 + t

        if t % 2 == 0:
            ans.append(even)
            even = 0
    ans.sort()
    return ans 

if __name__ == '__main__':
    s = input()
    ans = method(s)
    for n in ans:
        print(n)
